package com.godme.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class MailSenderSentinelResource {

    public static boolean sendCodeBlock(String email, String code, BlockException bk){
        System.err.println("sendCodeBlock: " + bk.getMessage());
        return false;
    }

    public static boolean sendCodeFallback(String email, String code, Throwable throwable){
        System.err.println("sendCodeFallback: " + throwable.getMessage());
        return false;
    }
}
